import axios from "@/axios";

//获取标签分页数据
export function getTagPageList(data) {
    console.log("标签分页请求数据体：" + data)

    return axios.post("/admin/tag/list", data)
}

//添加标签标签
export function addTagOne(data) {
    console.log("add tag one")
    return axios.post("/admin/tag/add/one", data)
}

//批量添加标签标签
export function addTag(data) {
    console.log("add tag")
    return axios.post("/admin/tag/add", data)
}

//通过标签id删除标签
export function deleteTag(data) {
    console.log("delete tag")
    return axios.post("/admin/tag/delete", data)
}

//模糊查询标签
export function searchLikeTagName(data) {
    console.log("search like tagname")
    return axios.post("admin/tag/search/like", data)
}

// 获取标签 select 列表数据
export function getTagSelectList() {
    return axios.get("/admin/tag/select/list")
}

